home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 609 < prev    next >
Internet Message Format  |  1996-08-06  |  1KB

  1. Path: bristol.st.com!gordano!magali
  2. From: magali@gordano.inmos.co.uk (Magali Marbot (RMC))
  3. Newsgroups: comp.std.c
  4. Subject: About BUFFER_FILE
  5. Date: 19 Mar 1996 17:44:13 GMT
  6. Organization: INMOS Limited, Bristol, UK
  7. Sender: magali@gordano (Magali Marbot (RMC))
  8. Distribution: world
  9. Message-ID: <4imrpd$357@milkwort.inmos.co.uk>
  10. NNTP-Posting-Host: gordano.inmos.co.uk
  11.  
  12. I have a program with FILE typed files and i'd like to allocate some files of this
  13. program in the buffer, so i have to use BUFFER_FILE. It's OK but i don't know how 
  14. to change two instructions : 
  15.  
  16. * if (fread(range[y], sizeof(image_data), x_size, image_file) != x_size)
  17.  with FILE *image_file;
  18.  
  19. * if (fwrite(range[y], sizeof(image_data), x_dsize,output) != x_dsize)
  20.  with FILE *output;
  21.  
  22. Thus, what can i do to change my FILE in BUFFER_FILE and have the same result ?
  23. Maybe should i play with string of the BUFFER_FILE ?
  24.  
  25. If you can help me or you know where i could get a solution, don't hesitate to
  26. email me your answer !!!
  27.  
  28. Thanks a lot,
  29. Magali
  30.  
  31.  
  32. ----- Magali Marbot --------
  33.  Email : magali@inmos.co.uk
  34. ----------------------------
  35.